package com.study.Util;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageList<T> {

    @ApiModelProperty("总条数")
    private Integer totalCount;

    @ApiModelProperty("总页数")
    private Integer totalPage;

    @ApiModelProperty("当前页码")
    private Integer pageNo;

    @ApiModelProperty("每页展示多少条")
    private Integer pageSize;

    @ApiModelProperty("元素")
    private List<T> pageElement;

}
